import request from '@/utils/request'

// 查询实验与OJ题目的关联列表
export function listAssignment_oj(query) {
  return request({
    url: '/system/assignment_oj/list',
    method: 'get',
    params: query
  })
}

// 查询实验与OJ题目的关联详细
export function getAssignment_oj(id) {
  return request({
    url: '/system/assignment_oj/' + id,
    method: 'get'
  })
}

// 新增实验与OJ题目的关联
export function addAssignment_oj(data) {
  return request({
    url: '/system/assignment_oj',
    method: 'post',
    data: data
  })
}

// 修改实验与OJ题目的关联
export function updateAssignment_oj(data) {
  return request({
    url: '/system/assignment_oj',
    method: 'put',
    data: data
  })
}

// 删除实验与OJ题目的关联
export function delAssignment_oj(id) {
  return request({
    url: '/system/assignment_oj/' + id,
    method: 'delete'
  })
}
